package com.djz.stuinfomge.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.djz.stuinfomge.dao.IClassDAO;
import com.djz.stuinfomge.entity.Class;
import com.djz.stuinfomge.entity.PageBean;
import com.djz.stuinfomge.exception.PageNumOutOfRange;
import com.djz.stuinfomge.service.ClassService;

@Service
public class ClassServiceImpl extends BaseServiceImpl<Class> implements ClassService{

	public PageBean<Class> getPage(Integer id, Integer size, Class bean)
			throws PageNumOutOfRange {
		
		return getDAO().getPage(id, size, bean);
	}

	public List getClassByName(String name) {
		return null;
	}

	
    @Autowired
    public void setDAO(IClassDAO dao) {
	this.dao = dao;
    }

    public IClassDAO getDAO() {
	return (IClassDAO) dao;
    }
}
